//
//  AENewsAddCommentRequest.m
//  AESOLAR_IOS
//
//  Created by Bin Tang on 2024/10/28.
//  Copyright © 2024 Mr.Wang. All rights reserved.
//

#import "AENewsAddCommentRequest.h"
#import "AE_Solar-Swift.h"

@interface AENewsAddCommentRequest ()
@property (nonatomic, strong) AENewsAddCommentReqModel *model;
@end

@implementation AENewsAddCommentRequest

- (instancetype)initWithModel:(AENewsAddCommentReqModel *)model {
    if (self = [super init]) {
        self.model = model;
    }
    return self;
}

- (NSString *)requestUrl {
    return kAPP_NEWS_ADD_COMMENT;
}

- (TYZRequestMethod)requestMethod {
    return TYZRequestMethodPOST;
}

- (id)requestArgument {
    NSDictionary *params = [self.model yy_modelToJSONObject];
    NSString *json = [params yy_modelToJSONString];
    NSString *aesStr = [AESCrypt AES128Encrypt:json key:[AEUserCommonInfo getAesKey]];
    return @{@"requestData": aesStr};
}

- (Class)rspClass {
    return [AENewsCommentsModel class];
}

@end
